package avicit.bdp.dms.oauth2.token;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * TODO
 *
 * @author xugb
 * @date 2024/4/15 9:28
 */

public class OauthPasswordToken extends UsernamePasswordToken {
    private boolean hasPassword = true;
    private String clientSecret;

    public OauthPasswordToken(String userName, String password) {
        super(userName, password);
    }

    public OauthPasswordToken(String userName, String password, boolean hasPassword, String clientSecret) {
        super(userName, password);
        this.hasPassword = hasPassword;
        this.clientSecret = clientSecret;
    }

    public String getClientSecret() {
        return this.clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public boolean hasPassword() {
        return this.hasPassword;
    }

    public void setHasPassword(boolean hasPassword) {
        this.hasPassword = hasPassword;
    }
}

